<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Upload</title>
    <script src="http://libs.baidu.com/jquery/1.9.0/jquery.js"></script>
</head>

<body>
    <div id="main">
        <div id="upload">
            <input type="file" id="sel" accept="image/png, image/jpeg, image/jpg, video/mp4, video/flv" onchange="set_img_src()"/><br/>
            <img id="preview" src="{{url_for('static',filename='img/upload_default.png')}}" height="400"><br/>
            <input type="button" id="submit" onclick="send_img()" value="提交">
        </div>
        <div id="display">
            <!-- <img id="result" src="{{url_for('static',filename='img/upload_display.png')}}" height="400"><br/>
            <input type="button" id="save" value="保存"> -->
            <video id="result" src="" controls="controls" autoplay="autoplay"></video>
            <input type="button" id="save" value="保存">
        </div>
    </div>
    <script src="{{url_for('static',filename='js/upload.js')}}"></script>
</body>
</html>